package com.jl.magic.montage.model;


import com.jl.jtils.file.FileType;
import com.jl.magic.montage.config.AbstractInlayConfig;

/**
 * @author jiangli
 * 生成蒙太奇图片配置
 */
public class MontageConfig {

    /**
     * 镶元图片类型
     */
    public static final FileType[] INLAY_FILE_TYPES = new FileType[]{FileType.JPG, FileType.PNG};

    /**
     * 源图片
     */
    private String source;

    /**
     * 目标图片
     */
    private String target;

    /**
     * 分割子图数量
     */
    private int sliceCount;

    /**
     * 镶元图片目录
     */
    private String inlayPath;

    /**
     * 镶元图片是否做压缩处理，默认压缩
     */
    private boolean compressed;

    /**
     * 镶元配置
     */
    private AbstractInlayConfig inlayConfig;

    public MontageConfig() {
        compressed = true;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public int getSliceCount() {
        return sliceCount;
    }

    public void setSliceCount(int sliceCount) {
        this.sliceCount = sliceCount;
    }

    public String getInlayPath() {
        return inlayPath;
    }

    public void setInlayPath(String inlayPath) {
        this.inlayPath = inlayPath;
    }

    public boolean isCompressed() {
        return compressed;
    }

    public void setCompressed(boolean compressed) {
        this.compressed = compressed;
    }

    public AbstractInlayConfig getInlayConfig() {
        return inlayConfig;
    }

    public void setInlayConfig(AbstractInlayConfig inlayConfig) {
        this.inlayConfig = inlayConfig;
    }

}
